#include "timer.h"


namespace vkinfer
{
	void VkTimer::start()
	{
		start_tp = std::chrono::high_resolution_clock::now();
	}

	float VkTimer::stop()
	{
		auto current = std::chrono::high_resolution_clock::now();
		auto diff = std::chrono::duration_cast<std::chrono::microseconds>(current - start_tp).count() * 0.001f * 0.001f;
		return diff;
	}
}
